package com.yfp.machine.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

import java.io.Serializable;

/**
 * 资源vo
 *
 *
 * @date 2023/12/28
 */
@Schema(title = "资源vo")
public class ResourceVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 资源类型 1：图片 2：视频
     */
    @Schema(title = "资源类型 1：图片 2：视频")
    @NotNull(message = "资源类型不能为空")
    private Integer resourceType;
    /**
     * 图片id/视频id
     */
    @Schema(title = "图片id/视频id")
    @NotNull(message = "资源id不能为空")
    private String resourceId;

    @Schema(title = "视频时长")
    private String duration;

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }
}
